package com.pmcc.platform.shopping.repository;

import com.pmcc.platform.shopping.entity.ShoppingGiftChangeLog;
import com.pmcc.platform.shopping.enums.GiftChange;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ShoppingGiftChangeLogRepository extends JpaRepository<ShoppingGiftChangeLog,String> {

    List<ShoppingGiftChangeLog> findAllBySalesmanIdAndDelFlagAndGiftChangeAndGooodId(String salesmanId, String delFlag, GiftChange giftChange,String goodId);


    List<ShoppingGiftChangeLog> findAllBySalesmanIdAndDelFlagAndGiftChangeAndGooodIdAndShopId(String salesmanId, String delFlag, GiftChange giftChange,String goodId,String shopid);

}
